#include<iostream>
using namespace std;
class Animal {
protected:
	string no;
	int age;
public:
	Animal(){}
	Animal(string _no,int a):no(_no),age(a){}
	virtual void Speak(){}
};
class Tiger :public Animal {
public:
	Tiger(string _no, int a):Animal(_no,a) {
	}
	virtual void Speak() {
		cout << "Hello,I am " << no << ",AOOO." << endl;
	}
};
class Duck:public Animal {
public:
	Duck(string _no, int a) :Animal(_no, a) {
	}
	virtual void Speak() {
		cout << "Hello,I am " << no << ",GAGA." << endl;
	}
};
class Pig :public Animal {
public:
	Pig(string _no, int a) :Animal(_no, a) {
	}
	virtual void Speak() {
		cout << "Hello,I am " << no << ",HENGHENG." << endl;
	}
};
class Dog :public Animal {
public:
	Dog(string _no, int a) :Animal(_no, a) {
	}
	virtual void Speak() {
		cout << "Hello,I am " << no << ",WangWang." << endl;
	}
};
int main()
{
	int t;
	cin >> t;
	string no1;
	string no2;
	int age;
	Animal* a;
	for (int i = 0; i < t; i++) {
		cin >> no1 >> no2 >> age;
		if (no1 == "Tiger") {
			Tiger t(no2, age);
			a = &t;
			a->Speak();
		}
		else if (no1 == "Dog") {
			Dog d1(no2, age);
			a = &d1;
			a->Speak();
		}
		else if (no1 == "Duck") {
			Duck d2(no2, age);
			a = &d2;
			a->Speak();
		}
		else if (no1 == "Pig") {
			Pig p(no2, age);
			a = &p;
			a->Speak();
		}
		else {
			cout << "There is no " << no1 << " in our Zoo." << endl;
		}
	}
	return 0;
}